﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

namespace System.Windows
{
    public static class WindowsExts
    {

        public static void initWindowStateStartupLocation(this Window window,
            WindowState windowState = WindowState.Maximized,
            WindowStartupLocation windowStartupLocation = WindowStartupLocation.CenterScreen
            )
        {
            window.WindowState = windowState;
            window.WindowStartupLocation = windowStartupLocation;
        }
        #region Cursors 
        public static void CursorWait(this Window window)
        {
            window.Cursor = Cursors.Wait;
        }
        public static void CursorAppStarting(this Window window)
        {
            window.Cursor = Cursors.AppStarting;
        }
        public static void CursorArrow(this Window window)
        {
            window.Cursor = Cursors.Arrow;
        }
        #endregion
    }
}
